package com.tourscool.service.impl;

import com.tourscool.service.CommonDemoService;
import com.tourscool.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;

public class DemoServiceImpl implements DemoService {

    @Autowired
    private CommonDemoService commonDemoService;

    @Override
    public String sayHello(String name) {
        String hello = commonDemoService.sayHello("world"); // 执行远程方法
        System.out.println( hello ); // 显示调用结果
        return hello;
    }
}
